from huggingface_hub import snapshot_download
from huggingface_hub import login
# login(token="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")
#
# snapshot_download(repo_id="chengyenhsieh/TAO-Amodal",repo_type="dataset",
#                   endpoint='https://hf-mirror.com')

snapshot_download(repo_id="chengyenhsieh/TAO-Amodal", repo_type="dataset", # {'dataset', 'model'}
                  local_dir="D:/test",
                  token='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',
                  endpoint='https://hf-mirror.com'  # 如果不能翻墙，可以添加这个参数，从而在hf-mirror上下载（不需要翻墙，默认huggingface需要外网）
)

